package com.yz.book.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yz.book.entity.Order;
import com.yz.book.entity.User;
import com.yz.book.vo.CartOrder;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ste
 * @since 2023-02-04 03:37:37
 */
public interface OrderService extends IService<Order> {

    CartOrder getCartOrder(Integer userId, Integer[] productIds);

    void createOrder(User currentUser, Integer[] productIds, Integer addressId);

    Page queryAllOrder(Integer userId, Integer currentPage, Integer pageSize);

    void updateState(Integer orderId, Integer newStatus);
}
